import { doges } from './doges.entity';
import { InjectRepository } from "@nestjs/typeorm";
import { Injectable } from '@nestjs/common';
import { Repository } from 'typeorm';
@Injectable()
export class dogesService{
    constructor(@InjectRepository(doges) private  dogesRepository: Repository<doges>) { }
    
    getAll(id:number): Promise<doges>{
        return this.dogesRepository.findOneById(id);
    }

    getAaa(): Promise<doges[]>{
        return this.dogesRepository.find()
    }
}